package me.a_littlesquid.origin.events;

import me.a_littlesquid.origin.Origin;
import me.a_littlesquid.origin.tasks.cooldown;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;

import java.util.UUID;

public class catchjion implements Listener {
private Origin plugin;
    @EventHandler
    public void onJion(PlayerJoinEvent event){
    Player player=event.getPlayer();
    UUID uuid=player.getUniqueId();
    plugin=Origin.getInstance();
    cooldown cooldown=new cooldown(uuid);
    cooldown.runTaskAsynchronously(plugin);
    }
}
